package cn.asterly.cicada.mapper;

import cn.asterly.cicada.model.Essay;
import org.apache.ibatis.annotations.Param;
import org.w3c.dom.stylesheets.LinkStyle;

import java.util.List;

public interface EssayMapper {

    int deleteByPrimaryKey(String id);

    int deleteByPrimaryKeys(@Param("ids") String[] ids);

    int insert(Essay record);

    int insertSelective(Essay record);

    Essay selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Essay record);

    int updateByPrimaryKey(Essay record);

    List<Essay> selpaging(@Param("curentPage") int curentPage, @Param("pageSize") int pageSize);

    long selCountWssays();

    String selReadMax();
}